package org.jeecg.modules.ws.util;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Data;

@Data
@JacksonXmlRootElement(localName = "TX")
public class WyzlBalanceResponse {
    
    @JacksonXmlProperty(localName = "REQUEST_SN")
    private String requestSn;
    
    @JacksonXmlProperty(localName = "CUST_ID")
    private String custId;
    
    @JacksonXmlProperty(localName = "TX_CODE")
    private String txCode;
    
    @JacksonXmlProperty(localName = "RETURN_CODE")
    private String returnCode;
    
    @JacksonXmlProperty(localName = "RETURN_MSG")
    private String returnMsg;
    
    @JacksonXmlProperty(localName = "LANGUAGE")
    private String language;
    
    @JacksonXmlProperty(localName = "TX_INFO")
    private TxInfo txInfo;
    
    @Data
    public static class TxInfo {
        @JacksonXmlProperty(localName = "ACC_NO")
        private String accNo;
        
        @JacksonXmlProperty(localName = "BALANCE")
        private String balance;
        
        @JacksonXmlProperty(localName = "BALANCE1")
        private String balance1;
        
        @JacksonXmlProperty(localName = "INTEREST")
        private String interest;
        
        @JacksonXmlProperty(localName = "INTEREST_RATE")
        private String interestRate;
        
        @JacksonXmlProperty(localName = "ACC_STATUS")
        private String accStatus;
        
        @JacksonXmlProperty(localName = "RESV_NAME1")
        private String resvName1;
        
        @JacksonXmlProperty(localName = "RESV1")
        private String resv1;
        
        @JacksonXmlProperty(localName = "RESV_NAME2")
        private String resvName2;
        
        @JacksonXmlProperty(localName = "RESV2")
        private String resv2;
        
        @JacksonXmlProperty(localName = "REM1")
        private String rem1;
        
        @JacksonXmlProperty(localName = "REM2")
        private String rem2;
        
        @JacksonXmlProperty(localName = "CURR_COD")
        private String currCod;
    }
}
